package com.jnc.web.biz.tool.model;

import com.jnc.common.base.BaseReq;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @Author: jjn
 * @Date: 2018/11/14
 * @Desc: 数据库表列信息
 */
public class ColumnInfo extends BaseReq {
    private static final long serialVersionUID = 1L;

    private String columnName;    //字段名称
    private String dataType;      //字段类型
    private String columnComment; //字段注释
    private String attrType;      //java属性类型
    private String attrName;      //java属性名称 (第一个字母大写)，如：user_name => UserName
    private String attrname;      //Java属性名称(第一个字母小写)，如：user_name => userName

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public String getColumnComment() {
        return columnComment;
    }

    public void setColumnComment(String columnComment) {
        this.columnComment = columnComment;
    }

    public String getAttrType() {
        return attrType;
    }

    public void setAttrType(String attrType) {
        this.attrType = attrType;
    }

    public String getAttrName() {
        return attrName;
    }

    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }

    public String getAttrname() {
        return attrname;
    }

    public void setAttrname(String attrname) {
        this.attrname = attrname;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("columnName", columnName)
                .append("dataType", dataType)
                .append("columnComment", columnComment)
                .append("attrType", attrType)
                .append("attrName", attrName)
                .append("attrname", attrname)
                .toString();
    }
}
